package com.dao;

import java.util.List;

import com.enetiy.Area;
import com.enetiy.Areausable;
import com.enetiy.Comboinfo;
import com.enetiy.Comborecord;

public interface ComboDao {
	//根据用户id查询用户所有套餐
	public List<Comboinfo> selectUserComboList(int userid) throws Exception;
	//根据用户id和使用状态查询用户所有可用套餐
	public List<Comboinfo> selectUserComboList(int userid,int status) throws Exception;
	
	//根据用户,商品id
	public Comboinfo selCombo(int userid,int comboid) throws Exception; 
	//根据套餐id查询套餐
	public Comboinfo selectUserCombo(int id) throws Exception;
	//添加用户套餐
	public void insertUserCombo(Comboinfo comboinfo) throws Exception;
	//删除用户套餐
	public void deleteUserCombo(Comboinfo comboinfo) throws Exception;
	//修改用户套餐
	public void updateUserCombo(Comboinfo comboinfo) throws Exception;
	
	//添加用户套餐记录
	public void insertUserComboRecord(Comborecord comborecord) throws Exception;
	
}
